(function() {
    'use strict';

    angular
        .module('weiyouquApp')
        .controller('SysMessageDetailController', SysMessageDetailController);

    SysMessageDetailController.$inject = ['$scope', '$rootScope', '$stateParams', 'entity', 'SysMessage'];

    function SysMessageDetailController($scope, $rootScope, $stateParams, entity, SysMessage) {
        var vm = this;

        vm.sysMessage = entity;

        var unsubscribe = $rootScope.$on('weiyouquApp:sysMessageUpdate', function(event, result) {
            vm.sysMessage = result;
        });
        $scope.$on('$destroy', unsubscribe);
    }
})();
